package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 文案内容对象 wen_content
 * 
 * @author ruoyi
 * @date 2023-02-09
 */
public class WenContent extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long wid;

    /** 标题 */
    @Excel(name = "标题")
    private String title;

    /** 副标题 */
    @Excel(name = "副标题")
    private String slug;

    /** 内容 */
    @Excel(name = "内容")
    private String content;

    /** 类型 */
    @Excel(name = "类型")
    private String type;

    /** 标签 */
    @Excel(name = "标签")
    private String tags;

    /** 分类 */
    @Excel(name = "分类")
    private String categories;

    /** 点赞数 */
    @Excel(name = "点赞数")
    private Long hits;

    /** 收藏数 */
    @Excel(name = "收藏数")
    private Long likes;

    /** 评论数量 */
    @Excel(name = "评论数量")
    private Long commentsNum;

    /** 开启评论 -1 不开启 0 正常 */
    @Excel(name = "开启评论 -1 不开启 0 正常")
    private Long allowComment;

    /** 状态 -1 删除 0 正常 */
    @Excel(name = "状态 -1 删除 0 正常")
    private Long status;

    /** 作者名称 */
    @Excel(name = "作者名称")
    private String author;

    /** 创建人id */
    @Excel(name = "创建人id")
    private Long created;

    /** 最近修改人id */
    @Excel(name = "最近修改人id")
    private Long modified;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date gtmCreate;

    /** 修改时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date gtmModified;

    public void setWid(Long wid) 
    {
        this.wid = wid;
    }

    public Long getWid() 
    {
        return wid;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setSlug(String slug) 
    {
        this.slug = slug;
    }

    public String getSlug() 
    {
        return slug;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }
    public void setTags(String tags) 
    {
        this.tags = tags;
    }

    public String getTags() 
    {
        return tags;
    }
    public void setCategories(String categories) 
    {
        this.categories = categories;
    }

    public String getCategories() 
    {
        return categories;
    }
    public void setHits(Long hits) 
    {
        this.hits = hits;
    }

    public Long getHits() 
    {
        return hits;
    }
    public void setLikes(Long likes) 
    {
        this.likes = likes;
    }

    public Long getLikes() 
    {
        return likes;
    }
    public void setCommentsNum(Long commentsNum) 
    {
        this.commentsNum = commentsNum;
    }

    public Long getCommentsNum() 
    {
        return commentsNum;
    }
    public void setAllowComment(Long allowComment) 
    {
        this.allowComment = allowComment;
    }

    public Long getAllowComment() 
    {
        return allowComment;
    }
    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }
    public void setAuthor(String author) 
    {
        this.author = author;
    }

    public String getAuthor() 
    {
        return author;
    }
    public void setCreated(Long created) 
    {
        this.created = created;
    }

    public Long getCreated() 
    {
        return created;
    }
    public void setModified(Long modified) 
    {
        this.modified = modified;
    }

    public Long getModified() 
    {
        return modified;
    }
    public void setGtmCreate(Date gtmCreate) 
    {
        this.gtmCreate = gtmCreate;
    }

    public Date getGtmCreate() 
    {
        return gtmCreate;
    }
    public void setGtmModified(Date gtmModified) 
    {
        this.gtmModified = gtmModified;
    }

    public Date getGtmModified() 
    {
        return gtmModified;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("wid", getWid())
            .append("title", getTitle())
            .append("slug", getSlug())
            .append("content", getContent())
            .append("type", getType())
            .append("tags", getTags())
            .append("categories", getCategories())
            .append("hits", getHits())
            .append("likes", getLikes())
            .append("commentsNum", getCommentsNum())
            .append("allowComment", getAllowComment())
            .append("status", getStatus())
            .append("author", getAuthor())
            .append("created", getCreated())
            .append("modified", getModified())
            .append("gtmCreate", getGtmCreate())
            .append("gtmModified", getGtmModified())
            .toString();
    }
}
